package com.gitee.jktantan.datasource.monitor.analyze.metrics;

import com.gitee.jktantan.datasource.monitor.analyze.entity.HistogramEntity;
import com.gitee.jktantan.datasource.monitor.analyze.entity.TimerEntity;
import lombok.Data;

/**
 * 数据源状态统计
 */
@Data
public class StatisticsEntity {
    //数据池名
    private String poolName;
    //数据库地址
    private String url;
    //等待获取connection的时长
    private TimerEntity wait;
    //连接使用时长
    private HistogramEntity usage;
    //连接总数
    private String totalConnections;
    //空闲总数
    private String idleConnections;
    //活动总数
    private String activeConnections;
    //等待总数
    private String pendingConnections;

    //连接状态
    private String connectivityCheck;
    //连接成功率，必须99次都成功才算
    private String connection99Percent;

}
